Skip to content
main
Switch branches/tags
jam0001/AnActualEmerald/
jam0001/AnActualEmerald/

Latest commit

* Got basic grammar working

* Got basic interpreter working

* Bug smashin

* Update README.md

* Tweaked examples
090f0f6

Git stats

Files

Permalink
Failed to load latest commit information.

D-script

My idea for the theme of "first-class comments" was to make the language where the instructions are described (get it? D-script?) by the comments. I'm not sure if I hit the mark there or not but I'm fairly pleased with how it came out. The interpreter is however being held together by sheer force of will and probably break at any amount of prodding. The examples run fine though.

Overview

Because the goal of this language was to be as close to plain English as possible, the syntax should be pretty intuitive. A statement like function foo takes bar prints bar with newline and returns nothing is valid and defines a function named foo that has one parameter, bar. At the moment all D-script can do is assign to variables and print things to the console.

Build instructions

There are three example files in ./examples

cargo run -- ./examples/example1.d will run the first, the other two are named in kind.